package com.services;

import java.util.List;

import com.DAO.SelectRepository;
import com.DAO.StaffManageRepository;
import com.DAO.impl.SelectRepositoryImpl;
import com.DAO.impl.StaffManageRepositoryImpl;
import com.beans.Calculate;
import com.beans.Staff;

public class SelectService {
	private SelectRepository select = new SelectRepositoryImpl();
	private StaffManageRepository staff = new StaffManageRepositoryImpl();
	 public List<Staff> selectAll(){
		 return staff.selectAll();
	 }
	 public List<Calculate> selectAll(int staffSno){
		 return select.selectAll(staffSno);
	 }
	 public Calculate selectThis(String month, int staffSno) {
		 return select.selectThis(month, staffSno);
	 }
	public List<Calculate> selectAllStaff(String month){
		return select.selectAllStaff(month);
	}
}
